Contents page

Rules for Tools/Notate Flags


Notate Flags
#define N_0          0           /* Not yet notated. */ 
#define N_1          1           /* Whole note. */ 
#define N_2          2           /* Half note. */ 
#define N_4          3           /* Quarter note. */ 
#define N_8          4           /* Eighth note. */
#define N_16         5           /* Sixteenth note. */ 
#define N_32         6           /* Thirty Second note. */ 
#define N_64         7           /* 64th note. */ 
#define N_NOTEVAL    7           /* Mask for note type. */ 
#define N_DOTTED     (1 << 3)    /* Dotted note. */ 
#define N_TRIPLET    (1 << 4)    /* Triplet. */

#define N_NOTE       0x1F        /* Mask for complete note type. */

#define N_BEAM       (1 << 5)    /* Start of beamed section. */ 
#define N_FLAG       (1 << 6)    /* Draw the flag. */ 
#define N_STEMUP     (1 << 7)    /* Stem goes up (not down.) */
#define N_ADJACENT   (1 << 8)    /* Second of two adjacent notes. */
#define N_LEFTBEAM   (1 << 9)    /* Draw beam to the left. */ 
#define N_RIGHTBEAM  (1 << 10)   /* Draw beam to the right. */
#define N_TNOTE      (1 << 11)   /* Tied note */ 
#define N_RES        (3 << 12)   /* Resolution note originally quantized */ 
#define N_SHIFTRES   (12)        /* used to shift bits */ 
#define N_RESTRIP    (1 << 14)   /* If resolution is triplet */ 
#define N_DONTPLOT   (1 << 15)   /* if set, don't plot */ 
#define DISPLAYRANGE 29          /* Upper and lower bounds of display. */